package com.exam.hellohass;

import cn.bmob.v3.Bmob;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.TextView;

public class LoginActivity extends Activity {

	private TextView signuop_btn,login_cancel_text;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.login_layout);
		
		initView();
		initListener();
	}

	private void initListener() {
		
		signuop_btn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(LoginActivity.this,SignupActivity.class);
				startActivity(intent);
				finish();
			}
		});
		
		login_cancel_text.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		
	}

	private void initView() {
		signuop_btn = (TextView) findViewById(R.id.gotoSignup);
		login_cancel_text = (TextView) findViewById(R.id.login_back_btn);
	}
	
}
